<?php 

	require_once 'include/comm.inc.php';
	require_once 'functions.php';
	
	$sql = "update client_user set `client_user_name` = '".$_POST['client_user_name']."', `client_user_link` = '".$_POST['client_user_link']."', `client_user_date_s` = '".$_POST['client_user_date_s']."', `client_user_date_e` = '".$_POST['client_user_date_e']."', `client_user_pv_number` = '".$_POST['client_user_pv_number']."', `client_user_status` = '".$_POST['client_user_status']."',  `agency_user` = '".$_POST['agency_user']."' where client_user_id='".$_POST['client_user_id']."'";
	$clien_info_return=$db->query($sql);

	/**
	 * 用户记录插入
	 */
	if ($clien_info_return){
		$clien_info_sql="INSERT INTO `client_user_record`  VALUES ('".$_POST['client_user_link']."', '".$_POST['client_user_date_s']."', '".$_POST['client_user_date_e']."', '".$_POST['client_user_pv_number']."', '".time()."', '".$_POST['client_user_id']."');";
		$clien_info_return=$db->query($clien_info_sql);
	}


	

		redirect('menberIndex.php');

?>